import Mock from 'mockjs';

let List = []
const count = 60

for (let i = 0; i < count; i++) {
	List.push(Mock.mock({
		id: Mock.Random.guid(),
		name: Mock.Random.cname(),
		addr: Mock.mock('@county(true)'),
		'age|18-60': 1,
		birth: Mock.Random.date(),
		sex: Mock.Random.integer(0, 1)
	}))
}

export default {
    list:config => {
		// List.push(Mock.mock({}))
		
		return Mock.mock({
			'list|5':[{
				'title':'@ctitle(5,20)',
			}]
		})
	}
}
